/**
 * Created by LXH on 2017/10/31.
 */
import axios from './axios.js'
import qs from 'qs'
import store from'../vuex/'
import {tl} from'../mixin/tool'
import {utility} from '../assets/js/utility/utility'

export const columnService = {
    /* 获取活动列表
     * 活动排序(publishTime,actEndTime,actReadNum)
     * */

    // 判断专栏是否购买
    getBought: function(params){
        return axios.get('/users/getBought'+ tl.getParam(params))
    },
    // 专栏详情页
    columnDetail: function(params){
        return axios.get('/columns/'+ params.id)
    },
    // 知识单品中的视频直播
    getliveUrl: function(params){
        return axios.get('shops/'+store.state.shopId+'/lives/'+params.watchNo+'/watchUrl'+ tl.getParam(params))
    },
    // 请求单品列表
    columnSingles: function(params){
        return axios.get('/singles'+ tl.getParam(params))
    },
    //请求知识单品
    SinglesDetail: function(params){
        return axios.get('/singles/'+ params.id +'?type='+ params.type)
    },
    /* 获取列表 */
    getcollect: function (params) {
        return axios.get('/users/collect/exist/'+tl.getParam(params))
    },
}
// export default {loginService}
